import ajax from './ajax'

//基础路径
const BaseUrl = 'http://127.0.0.1:3000';

//请求方法，请求首页轮播图
export const getHomeCasual = () => ajax(BaseUrl + '/api/homecasual');

//请求方法，请求首页导航
export const getHomeNav = () => ajax(BaseUrl + '/api/homenav');

//请求方法，请求首页商品列表
export const getHomeShopList = () => ajax(BaseUrl + '/api/homeshoplist');

//请求方法，请求推荐商品列表
export const getRecommendShopList = (params) => ajax(BaseUrl + '/api/recommendshoplist', params);

//请求搜索列表数据
export const getSearchGoods = () => ajax(BaseUrl + '/api/searchgoods');